package _03_FunCall;

import java.util.function.BiFunction;

public class _02_FunCall {

	public static void main(String[] args) {
		// 前两位是参数,第三位是返回值类型
		BiFunction<Integer, Integer, Integer> bi = (x, y) -> Integer.max(x, y);
		System.out.println(bi.apply(10, 111));

//		111

		BiFunction<Integer, Integer, Integer> bi1 = Integer::max;
		System.out.println(bi1.apply(22, 33));

//		33
	}

}
